﻿using InnoWeb.CEND.Core.Model.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Text;

namespace InnoWeb.CEND.Data.Mapping.BaseMapping
{
    public class BaseValidationConfiguration<K,T>:BaseEntity<T>,IValidatableObject where T:struct where K:class
    {
        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            Type classType = typeof(K);

            FieldInfo[] fields = classType.GetFields();
            //fields[0].Name

            throw new NotImplementedException();
        }
    }
}
